<!--${_TPL.put('titles',('记录'))}-->
<!--$embed{"header.htm"}-->

<!--$if{ space['self']}-->
<h2 class="title"><img src="image/app/doing.gif">记录</h2>
<div class="tabs_header">
	<ul class="tabs">
		<!--$if{ space['friendnum']}--><li${actives['we']}><a href="space.html?uid=${space['uid']}&do=${do}"><span>最新好友记录</span></a></li><!--$end-->
		<li${actives['me']}><a href="space.html?uid=${space['uid']}&do=${do}&view=me"><span>我的记录</span></a></li>
		<li${actives['all']}><a href="space.html?uid=${space['uid']}&do=${do}&view=all"><span>大家的记录</span></a></li>
		<li${actives['mood']}><a href="space.html?uid=${space['uid']}&do=mood"><span>同心情的朋友</span></a></li>
	</ul>
</div>
<!--$else-->
<!--${_TPL.put('spacetitle',('记录'))}-->

<!--$embed{"space_menu.htm"}-->
<!--$end-->

<div id="content">	

	<!--$if{ space['self']}-->
	<form method="post" action="cp.html?ac=doing&view=${view}" class="post_doing">
		<ul style="margin-bottom: 1em;">
			<li>
				<p>		
				<table cellspacing="0" cellpadding="0" width="100%">
				<tr>
				<td><a href="###" id="face" onclick="showFace(this.id, 'message');"><img src="image/facelist.gif" align="absmiddle" /></a></td>
				<!--$if{hasPermOfSeccode}-->
				<td>
					<!--$if{ _SCONFIG['questionmode']}-->
					请先回答提问：<!--${&com.heaven.web.utils.Common.question()}--> 
					<!--$else-->
					请先输入验证码：<script>seccode();</script> 
					<!--$end-->
					<input type="text" id="seccode" name="seccode" value="" size="10" class="t_input">
				</td>
				<!--$end-->
				<td align="right">还可输入 <strong id="maxlimit">200</strong> 个字符</td>
				</tr>
				</table>
				<textarea id="message" name="message" onkeyup="textCounter(this, 'maxlimit', 200)" onkeydown="ctrlEnter(event, 'add');" rows="4" style="width:438px; height: 72px;"></textarea>
				<input type="hidden" name="addsubmit" value="true" />
				<button type="submit" id="add" name="add" class="post_button">发布</button>
				</p>
			</li>
		</ul>
	<input type="hidden" name="refer" value="${theurl}" />
	<input type="hidden" name="formhash" value="<!--${&com.heaven.web.utils.Common.formhash()}-->" />
	</form>
	<!--$end-->

	<!--$if{ list}-->
	<div class="doing_list">
		<ol>
		<!--$for{basevalue:list}-->
			<li id="dl${basevalue['doid']}">
				<div class="avatar48"><a href="space.html?uid=${basevalue['uid']}"><img src="<!--${&com.heaven.web.utils.Common.avatar(basevalue['uid'],'small')}-->" alt="${_SN[basevalue['uid']]}" /></a></div>
				<div class="doing">
					<div class="doingcontent"><a href="space.html?uid=${basevalue['uid']}">${_SN[basevalue['uid']]}</a>: <span>${basevalue['message']}</span> 
					<a href="cp.html?ac=doing&op=comment&doid=${basevalue['doid']}" id="do_comment_${basevalue['doid']}" onclick="ajaxmenu(event, this.id, 99999, '', -1)" class="re">回复</a>
					<!--$if{ basevalue['uid']==_SGLOBAL['supe_uid']}--> <a href="cp.html?ac=doing&op=delete&doid=${basevalue['doid']}&id=${basevalue['id']}" id="doing_delete_${basevalue['doid']}_${basevalue['id']}" onclick="ajaxmenu(event, this.id, 99999)" class="re gray">删除</a><!--$end-->
					</div>
					<div class="doingtime">(<!--${&com.heaven.web.utils.Common.sgmdate('MM-dd HH:mm',basevalue['dateline'],true)}-->)</div>
		
					<!--$if{ clist[basevalue['doid']] || doid}-->
					<div class="sub_doing">
					<ol>
					
					<!--$if{ doid}-->
						<li>
							<div class="doingre">
							<form method="post" id="doingform" name="doingform" action="cp.html?ac=doing&op=comment&doid=${doid}">
							<h1>评论两句</h1>
							<p class="btn_line">
								<a href="###" id="face_${doid}" onclick="showFace(this.id, 'message_${doid}');"><img src="image/facelist.gif" align="absmiddle" /></a>
								<input type="text" name="message" id="message_${doid}" value="" class="t_input" size="35">
								<input type="hidden" name="refer" value="${theurl}">
								<input type="hidden" name="commentsubmit" value="true">
								<input type="submit" name="commentsubmit_submit" value="确定" class="submit" />
							</p>
							<input type="hidden" name="formhash" value="<!--${&com.heaven.web.utils.Common.formhash()}-->" />
							</form>
							</div>
						</li>
					<!--$end-->
					<!--$for{value : clist[basevalue['doid']]}-->
						<li style="margin-left: ${value['layer'] * 2}em;<!--$if{highlight && value['id']==highlight.toInteger}-->color:red;font-weight:bold;<!--$end-->">
						<a href="space.html?uid=${value['uid']}">${_SN[value['uid']]}</a>: ${value['message']} <span class="doingtime">(${&com.heaven.web.utils.Common.sgmdate('MM-dd HH:mm',value['dateline'],true)})</span> 
						<a href="cp.html?ac=doing&op=comment&doid=${value['doid']}&id=${value['id']}" id="do_comment_${value['doid']}_${value['id']}" onclick="ajaxmenu(event, this.id, 99999, '', -1)" class="re">回复</a>
						<!--$if{ value['uid']==_SGLOBAL['supe_uid'] || basevalue['uid'] == _SGLOBAL['supe_uid']}--> <a href="cp.html?ac=doing&op=delete&doid=${value['doid']}&id=${value['id']}" id="doing_delete_${value['doid']}_${value['id']}" onclick="ajaxmenu(event, this.id, 99999)" class="gray">删除</a><!--$end-->
						</li>
					<!--$end-->
					</ol>
					</div>
					<!--$end-->
				</div>
			</li>
		<!--$end-->
		</ol>
		<div class="page">${multi}</div>
	</div>
	
	<!--$else-->
	<div class="c_form">现在还没有记录。<!--$if{ space['self']}-->你可以用一句话记录下这一刻在做什么。<!--$end--></div>
	<!--$end-->
</div>

<div id="sidebar">
	<!--$if{ moodlist}-->
	<div class="sidebox">
		<h2 class="title">
			<p class="r_option"><a href="space.html?uid=${space['uid']}&do=mood">全部</a></p>
			跟<!--$if{ space['self']}-->我<!--$else-->${_SN[space['uid']]}<!--$end-->同心情的朋友
		</h2>
		<ul class="avatar_list">
			<!--$for{value:moodlist}-->
			<li>
				<div class="avatar48"><a href="space.html?uid=${value['uid']}&do=doing"><img src="<!--${&com.heaven.web.utils.Common.avatar(value['uid'],'small')}-->" alt="${_SN[value['uid']]}" /></a></div>
				<p><a href="space.html?uid=${value['uid']}" title="${_SN[value['uid']]}">${_SN[value['uid']]}</a></p>
				<p class="time">${&com.heaven.web.utils.Common.sgmdate('MM月dd日',value['dateline'],true)}</p>
			</li>
			<!--$end-->
		</ul>
	</div>
	<!--$end-->
</div>
<!--/sidebar-->

<!--$embed{"footer.htm"}-->
